class Trace < ActiveRecord::Base
  belongs_to :event
  
  validates_presence_of :event_id, :description, :minSpent
  
  def self.getLatest
    @traces = Trace.find(:all,:order => "created_at DESC")
    @traces = @traces[0,25]
    return @traces
  end
end
